const Router = require('koa-router')
const { create, list, tableList } = require('../controller/label.controller')
const { verifyAuth } = require('../milldleware/auth.middleware')

const labelRouter = new Router({ prefix: '/label' })

// 创建标签
labelRouter.post('/', verifyAuth, create)
// 获取所有标签
labelRouter.get('/', list)
// 根据动态id获取标签
labelRouter.get('/:momentId', tableList)




module.exports = labelRouter
